package cn.wolfcode.trip.base.service;



import cn.wolfcode.trip.base.domain.Question;
import cn.wolfcode.trip.base.query.QueryObject;
import cn.wolfcode.trip.base.query.QuestionQueryObject;
import cn.wolfcode.trip.base.query.StrategyCatalogQueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IQuestionService {

    /**
     * 高级查询 查询某用户的所有问题
     * @param qo
     * @return
     */
    PageInfo queryByUserId(QueryObject qo);

    List<Question> selectByUserId(Long userId);

    //查询特定的问题
    Question selectById(Long questionId);
    //查询已回答问题
    PageInfo<Question> queryHasAnswer(QuestionQueryObject qo);
    //查询没回答问题
    PageInfo<Question> queryNoAnswer(QuestionQueryObject qo);
    //新增
    void save(Question question);
    //关键字查询
    PageInfo<Question> queryKeyword(QuestionQueryObject qo);
}
